/*
 * Proximity.java 2011. 5. 30.
 *
 * Copyright 2011 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.naver.geotools;

/**
 * @author kr12250
 */
public class Proximity<T extends HasCoordinate> {
	public final Coordinate center;
	public final T neighbor;
	public final double distance;

	public Proximity(Coordinate center, T neighbor) {
		this.center = center;
		this.neighbor = neighbor;
		this.distance = Sphere.WGS84.distance(center, neighbor.getCoordinate());
	}
}
